Filename | (eval 74)[/usr/share/perl5/CGI.pm:932] |
Statements | Executed 20 statements in 25µs |
Eval Invoked At | /usr/share/perl5/CGI.pm line 932 |
Sibling evals | 1, 2, 3, 4, 5, 6 |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
2 | 2 | 1 | 27µs | 66µs | delete | CGI::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | package CGI; #### Method: delete | ||||
2 | # Deletes the named parameter entirely. | ||||
3 | #### | ||||
4 | # spent 66µs (27+39) within CGI::delete which was called 2 times, avg 33µs/call:
# once (18µs+26µs) by CGI::init at line 895 of CGI.pm
# once (9µs+13µs) by CGI::init at line 739 of CGI.pm | ||||
5 | 2 | 3µs | 2 | 4µs | my($self,@p) = self_or_default(@_); # spent 4µs making 2 calls to CGI::self_or_default, avg 2µs/call |
6 | 2 | 4µs | 2 | 19µs | my(@names) = rearrange([NAME],@p); # spent 19µs making 2 calls to CGI::Util::rearrange, avg 10µs/call |
7 | 2 | 800ns | my @to_delete = ref($names[0]) eq 'ARRAY' ? @$names[0] : @names; | ||
8 | 2 | 300ns | my %to_delete; | ||
9 | 2 | 900ns | for my $name (@to_delete) | ||
10 | { | ||||
11 | 2 | 3µs | CORE::delete $self->{param}{$name}; | ||
12 | 2 | 200ns | CORE::delete $self->{'.fieldnames'}->{$name}; | ||
13 | 2 | 2µs | $to_delete{$name}++; | ||
14 | } | ||||
15 | 2 | 7µs | 2 | 16µs | @{$self->{'.parameters'}}=grep { !exists($to_delete{$_}) } $self->param(); # spent 16µs making 2 calls to CGI::param, avg 8µs/call |
16 | 2 | 5µs | return; | ||
17 | } | ||||
18 | |||||
19 | ; |